package com.base.service.impl;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.ShopAliOrderMapper;
import com.base.po.sqlparam.ShopAliOrderExamplePage;
import com.base.po.voip.ShopAliOrder;
import com.base.po.voip.ShopAliOrderExample;
//import com.base.service.Date;
import com.base.service.ShopAliOrderService;
import com.base.utils.Page;
import org.springframework.stereotype.Service;

@Service("shopAliOrderService")
public class ShopAliOrderServiceImpl implements ShopAliOrderService {
	@Autowired
	ShopAliOrderMapper shopAliOrderMapper;

	@Override
	public int countByExample(ShopAliOrderExample example) {

		return shopAliOrderMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ShopAliOrderExample example) {

		return shopAliOrderMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {

		return shopAliOrderMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ShopAliOrder record) {

		return shopAliOrderMapper.insert(record);
	}

	@Override
	public int insertSelective(ShopAliOrder record) {

		return shopAliOrderMapper.insertSelective(record);
	}

	@Override
	public List<ShopAliOrder> selectByExample(ShopAliOrderExample example) {

		return shopAliOrderMapper.selectByExample(example);
	}

	@Override
	public ShopAliOrder selectByPrimaryKey(String id) {

		return shopAliOrderMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(ShopAliOrder record, ShopAliOrderExample example) {

		return shopAliOrderMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(ShopAliOrder record, ShopAliOrderExample example) {

		return shopAliOrderMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ShopAliOrder record) {

		return shopAliOrderMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ShopAliOrder record) {

		return shopAliOrderMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ShopAliOrder> selectByExamplePage(ShopAliOrderExamplePage example) {

		return shopAliOrderMapper.selectByExamplePage(example);
	}

	@Override
	public ShopAliOrder selectByOrderNum(String ordernum) {

		return shopAliOrderMapper.selectByOrderNum(ordernum);
	}

	@Override
	public int updateByOrderNum(Integer status, String ordernum) {

		return shopAliOrderMapper.updateByOrderNum(status, ordernum);
	}

	@Override
	public int updateByorderNum(Date clicktime, BigDecimal jsmoney, Integer status, String ordernum) {

		return shopAliOrderMapper.updateByorderNum(clicktime, jsmoney, status, ordernum);
	}

	@Override
	public List<ShopAliOrder> selectByUserID(Page page, String userid) {

		return shopAliOrderMapper.selectByUserID(page, userid);
	}

	@Override
	public int countByUserID(String userid) {

		return shopAliOrderMapper.countByUserID(userid);
	}

	@Override
	public String selectByOrdernum(String orderNum) {

		return shopAliOrderMapper.selectByOrdernum(orderNum);
	}

	@Override
	public List<ShopAliOrder> selectByAll(String userid, Integer status1, Integer status2) {

		return shopAliOrderMapper.selectByAll(userid, status1, status2);
	}
}
